import './assets/main.css'

import Api from '@/utils/Api.js'
import Message from '@/utils/Message'
import Request from '@/utils/Request.js'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

const app = createApp(App)
const pinia = createPinia()

app.use(ElementPlus)
app.use(router)
app.use(pinia)
pinia.use(piniaPluginPersist)

app.config.globalProperties.Message = Message
app.config.globalProperties.Api = Api
app.config.globalProperties.Request = Request
app.mount('#app')
